﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CodeCreator.Template
{
    public class JavaMap
    {
        public JavaMap()
        {

            List<TypeMap> mapList = new List<TypeMap>();
            mapList.Add(new TypeMap("NUMBER", "Int64", "Long", "Long"));
            mapList.Add(new TypeMap("NUMBER", "Double", "Double", "Double"));
            mapList.Add(new TypeMap("NUMBER", "Decimal", "Double", "Double"));
            mapList.Add(new TypeMap("LONG", "Int64", "Long", "Long"));
            mapList.Add(new TypeMap("INTEGER", "Int32", "Integer", "Integer"));
            mapList.Add(new TypeMap("FLOAT", "Double", "Double", "Double"));
            mapList.Add(new TypeMap("NVARCHAR2", "String", "String", "String"));
            mapList.Add(new TypeMap("VARCHAR2", "String", "String", "String"));
            mapList.Add(new TypeMap("CLOB", "String", "String", "String"));
            mapList.Add(new TypeMap("CHAR", "String", "String", "String"));
            mapList.Add(new TypeMap("TIMESTAMP(6)", "DateTime", "Date", "Date"));
            mapList.Add(new TypeMap("DATE", "DateTime", "Date", "Date"));
            string filePath= System.Windows.Forms.Application.StartupPath + "\\TypeMap.xml";
            ToolsSerialize.XmlSerialize<List<TypeMap>>(mapList, filePath);
        }
    }
}
